import { ColumnGroupType, ColumnType } from "antd/es/table"
import { useContext } from "react"

import { tableItemsContext } from "@/pages/layout/getAllConfig"
const useTableItems = (): Record<string, ColumnGroupType<any> | ColumnType<any>> => {
	const { tableItems } = useContext(tableItemsContext)
	return tableItems
}

export default useTableItems
